using System;
using Castle.ActiveRecord;
using Karma.Framework.Core.Domain;

namespace Karma.Framework.Core.Modules.Reports.Definition
{
    [ActiveRecord("[ReportColumn]", Mutable = false)]
    public class ReportColumn : DomainObject
    {
        [JoinedKey]
        public override Int64 Id { get; set; }

        [Property]
        public string Name { get; set; }

        [Property]
        public string Type { get; set; }

        [Property]
        public bool Summarizable { get; set; }

        [Property]
        public SummaryType SummaryType { get; set; }

        [Property]
        public bool Groupable { get; set; }
    }
}